package net.atomarrow.render;

import java.util.HashMap;

/**
 * 渲染
 * @author Michael
 *
 */
public abstract class Render {
    private HashMap<String,Object> datas=new HashMap<String, Object>();
    
	public abstract void render();
	
	public Render setAttr(String name,Object object) {
	    datas.put(name, object);
	    return this;
    }
	
	public <T>T getAttr(String name){
	    return (T) datas.get(name);
	}
	
}
